class DFUProtocol:
    def enter_dfu_mode(self):
        """进入DFU模式"""
        pass

    def flash(self, data: bytes):
        """烧录固件"""
        pass